package com.itheima02;

import java.util.HashMap;
import java.util.Scanner;

public class CiDian {
    public static void main(String[] args) {
        HashMap<String, String> cidian = new HashMap<>();
        cidian.put("1", "zhangsan");
        cidian.put("2", "lisi");
        cidian.put("3", "wangwu");
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入你要查找的单词:");
        String s = sc.nextLine();
        String s1 = cidian.get(s);
        s1 = (s1 == null) ? "你查错了" : s1;
        System.out.println(s1);
    }
}
